Skip to content

Add some tests for debug info behavior #24650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 17, 2025
Merged

Conversation

dschuff
Copy link
Member

@dschuff dschuff commented Jul 3, 2025

In particular, the behavior being discussed in #20462
Also decouple settings.DEBUG_LEVEL (which is the final debug
level output) from cases where we just need e.g. intermediate DWARF.
This will hopefully make cases like "full optimizations + source maps"
more clear.

In particular, the behavior being discussed in emscripten-core#20462
Also decouple settings.DEBUG_LEVEL (which is the final debug
level output) from cases where we just need e.g. intermediate DWARF.
This will hopefully make cases like "full optimizations + source maps"
more clear.
@sbc100
Copy link
Collaborator

sbc100 commented Jul 16, 2025

Did you want to land this?

(['-O2', '-g'], True, False, True, False),
(['-O2', '--closure=1'], False, True, False, True),
(['-O2', '--closure=1', '-g1'], False, True, True, True),
for args, expect_clean_js, expect_whitespace_js, expect_closured in [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lines 9200, 9202, and 9203 are new, the rest are the removal of the unused 'expect_clean_js' parameter.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was "expect_clean_js" a typo of "expect_emit_text"? (the latter seems to be the one removed)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, expect_emit_text was unused.

@dschuff dschuff requested review from kripken and aheejin July 16, 2025 22:22
@dschuff
Copy link
Member Author

dschuff commented Jul 16, 2025

Yeah, maybe @kripken and @aheejin would be the relevant reviewers.

@dschuff dschuff enabled auto-merge (squash) July 16, 2025 22:58
@dschuff dschuff disabled auto-merge July 17, 2025 16:53
@dschuff dschuff merged commit a524013 into emscripten-core:main Jul 17, 2025
3 of 13 checks passed
cwoffenden pushed a commit to cwoffenden/emscripten that referenced this pull request Jul 19, 2025
In particular, the behavior being discussed in emscripten-core#20462
Also decouple settings.DEBUG_LEVEL (which is the final debug
level output) from cases where we just need e.g. intermediate DWARF.
This will hopefully make cases like "full optimizations + source maps"
more clear.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants